import request from '@/utils/request'
import qs from 'qs';
// 获取基本用户信息接口
export function getUserInfo(data) {
    return request({
        url: '/ajax/account/getUserInfo',
        method: 'post',
        data: qs.stringify(data)
    })
}
// 获取验证码
export function getVertify(data) {
    return request({
        url: '/ajax/account/getVertify',
        method: 'post',
        data: qs.stringify(data)
    })
}
// 短信提交认证
export function checkLoaclPhone(data) {
    return request({
        url: '/ajax/account/checkLoaclPhone',
        method: 'post',
        data: qs.stringify(data)
    })
}
// 银行卡提交认证
export function checkBankCard(data) {
    return request({
        url: '/ajax/account/checkBankCard',
        method: 'post',
        data: qs.stringify(data)
    })
}
// 修改手机号
export function changePhone(data) {
    return request({
        url: '/ajax/account/changePhone',
        method: 'post',
        data: qs.stringify(data)
    })
}

// 修改登录密码接口
export function editDLPassword(data) {
    return request({
        url: '/ajax/account/editPassword',
        method: 'post',
        data: qs.stringify(data)
    })
}

// 修改交易密码接口
export function editTraderPassword(data) {
    return request({
        url: '/ajax/account/editTraderPassword',
        method: 'post',
        data: qs.stringify(data)
    })
}

// 绑定/解绑微信
export function bindWeiXin(data) {
    return request({
        url: '/ajax/account/bindWeiXin',
        method: 'post',
        data: qs.stringify(data)
    })
}

// 绑定/解绑邮箱接口
export function bindEmail(data) {
    return request({
        url: '/ajax/account/bindEmail',
        method: 'post',
        data: qs.stringify(data)
    })
}